/*
 ------------------------------------------------------------------------------
 Copyright (C) 2006-2007 Team Blur.

 This file is part of the Quantum Engine source code.

 The Quantum Engine source code is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or (at your
 option) any later version.

 The Quantum Engine source code is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 more details.

 You should have received a copy of the GNU General Public License along with
 the Quantum Engine source code; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 ------------------------------------------------------------------------------
*/


// win_local.h -- Windows specific header file


#ifndef __WIN_LOCAL_H__
#define __WIN_LOCAL_H__


#ifndef _WIN32
#error "You should not be including this file on this platform"
#endif


#define _WIN32_WINNT		0x0501
#define WINVER				0x0501

#include <windows.h>
//#include <winsock.h>

#include "resource.h"


typedef struct {
	HINSTANCE		hInstance;

	HWND			hWndMain;
	HWND			hWndFake;
	HWND			hWndConsole;
	HWND			hWndEditor;

	HHOOK			hHookKeyboard;

	bool			active;
	bool			isFullscreen;

	int				msgTime;

	int				cpuId;
	char			cpuString[128];

	double			ticksPerSecond;
} sysWin_t;

extern sysWin_t		sys;

LRESULT CALLBACK	WIN_MainWindowProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
LRESULT CALLBACK	WIN_FakeWindowProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);


#endif	// __WIN_LOCAL_H__
